Optimal. Leaf size=286 \[ \frac {\left (12 a^2 b B+3 b^3 B+4 a^3 (2 A+C)+3 a b^2 (4 A+3 C)\right ) \tanh ^{-1}(\sin (c+d x))}{8 d}+\frac {\left (15 a^3 b B+60 a b^3 B-3 a^4 C+4 b^4 (5 A+4 C)+4 a^2 b^2 (20 A+13 C)\right ) \tan (c+d x)}{30 b d}+\frac {\left (30 a^2 b B+45 b^3 B-6 a^3 C+a b^2 (100 A+71 C)\right ) \sec (c+d x) \tan (c+d x)}{120 d}+\frac {\left (4 b^2 (5 A+4 C)+3 a (5 b B-a C)\right ) (a+b \sec (c+d x))^2 \tan (c+d x)}{60 b d}+\frac {(5 b B-a C) (a+b \sec (c+d x))^3 \tan (c+d x)}{20 b d}+\frac {C (a+b \sec (c+d x))^4 \tan (c+d x)}{5 b d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.42, antiderivative size = 286, normalized size of antiderivative = 1.00, number of steps
used = 8, number of rules used = 7, integrand size = 39, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.180, Rules used = {4167, 4087,
4082, 3872, 3855, 3852, 8} \begin {gather*} \frac {\left (4 a^3 (2 A+C)+12 a^2 b B+3 a b^2 (4 A+3 C)+3 b^3 B\right ) \tanh ^{-1}(\sin (c+d x))}{8 d}+\frac {\tan (c+d x) \sec (c+d x) \left (-6 a^3 C+30 a^2 b B+a b^2 (100 A+71 C)+45 b^3 B\right )}{120 d}+\frac {\tan (c+d x) \left (-3 a^4 C+15 a^3 b B+4 a^2 b^2 (20 A+13 C)+60 a b^3 B+4 b^4 (5 A+4 C)\right )}{30 b d}+\frac {\tan (c+d x) \left (3 a (5 b B-a C)+4 b^2 (5 A+4 C)\right ) (a+b \sec (c+d x))^2}{60 b d}+\frac {(5 b B-a C) \tan (c+d x) (a+b \sec (c+d x))^3}{20 b d}+\frac {C \tan (c+d x) (a+b \sec (c+d x))^4}{5 b d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 8
Rule 3852
Rule 3855
Rule 3872
Rule 4082
Rule 4087
Rule 4167
Rubi steps
\begin {align*} \int \sec (c+d x) (a+b \sec (c+d x))^3 \left (A+B \sec (c+d x)+C \sec ^2(c+d x)\right ) \, dx &=\frac {C (a+b \sec (c+d x))^4 \tan (c+d x)}{5 b d}+\frac {\int \sec (c+d x) (a+b \sec (c+d x))^3 (b (5 A+4 C)+(5 b B-a C) \sec (c+d x)) \, dx}{5 b}\\ &=\frac {(5 b B-a C) (a+b \sec (c+d x))^3 \tan (c+d x)}{20 b d}+\frac {C (a+b \sec (c+d x))^4 \tan (c+d x)}{5 b d}+\frac {\int \sec (c+d x) (a+b \sec (c+d x))^2 \left (b (20 a A+15 b B+13 a C)+\left (4 b^2 (5 A+4 C)+3 a (5 b B-a C)\right ) \sec (c+d x)\right ) \, dx}{20 b}\\ &=\frac {\left (4 b^2 (5 A+4 C)+3 a (5 b B-a C)\right ) (a+b \sec (c+d x))^2 \tan (c+d x)}{60 b d}+\frac {(5 b B-a C) (a+b \sec (c+d x))^3 \tan (c+d x)}{20 b d}+\frac {C (a+b \sec (c+d x))^4 \tan (c+d x)}{5 b d}+\frac {\int \sec (c+d x) (a+b \sec (c+d x)) \left (b \left (75 a b B+8 b^2 (5 A+4 C)+a^2 (60 A+33 C)\right )+\left (30 a^2 b B+45 b^3 B-6 a^3 C+a b^2 (100 A+71 C)\right ) \sec (c+d x)\right ) \, dx}{60 b}\\ &=\frac {\left (30 a^2 b B+45 b^3 B-6 a^3 C+a b^2 (100 A+71 C)\right ) \sec (c+d x) \tan (c+d x)}{120 d}+\frac {\left (4 b^2 (5 A+4 C)+3 a (5 b B-a C)\right ) (a+b \sec (c+d x))^2 \tan (c+d x)}{60 b d}+\frac {(5 b B-a C) (a+b \sec (c+d x))^3 \tan (c+d x)}{20 b d}+\frac {C (a+b \sec (c+d x))^4 \tan (c+d x)}{5 b d}+\frac {\int \sec (c+d x) \left (15 b \left (12 a^2 b B+3 b^3 B+4 a^3 (2 A+C)+3 a b^2 (4 A+3 C)\right )+4 \left (15 a^3 b B+60 a b^3 B-3 a^4 C+4 b^4 (5 A+4 C)+4 a^2 b^2 (20 A+13 C)\right ) \sec (c+d x)\right ) \, dx}{120 b}\\ &=\frac {\left (30 a^2 b B+45 b^3 B-6 a^3 C+a b^2 (100 A+71 C)\right ) \sec (c+d x) \tan (c+d x)}{120 d}+\frac {\left (4 b^2 (5 A+4 C)+3 a (5 b B-a C)\right ) (a+b \sec (c+d x))^2 \tan (c+d x)}{60 b d}+\frac {(5 b B-a C) (a+b \sec (c+d x))^3 \tan (c+d x)}{20 b d}+\frac {C (a+b \sec (c+d x))^4 \tan (c+d x)}{5 b d}+\frac {1}{8} \left (12 a^2 b B+3 b^3 B+4 a^3 (2 A+C)+3 a b^2 (4 A+3 C)\right ) \int \sec (c+d x) \, dx+\frac {\left (15 a^3 b B+60 a b^3 B-3 a^4 C+4 b^4 (5 A+4 C)+4 a^2 b^2 (20 A+13 C)\right ) \int \sec ^2(c+d x) \, dx}{30 b}\\ &=\frac {\left (12 a^2 b B+3 b^3 B+4 a^3 (2 A+C)+3 a b^2 (4 A+3 C)\right ) \tanh ^{-1}(\sin (c+d x))}{8 d}+\frac {\left (30 a^2 b B+45 b^3 B-6 a^3 C+a b^2 (100 A+71 C)\right ) \sec (c+d x) \tan (c+d x)}{120 d}+\frac {\left (4 b^2 (5 A+4 C)+3 a (5 b B-a C)\right ) (a+b \sec (c+d x))^2 \tan (c+d x)}{60 b d}+\frac {(5 b B-a C) (a+b \sec (c+d x))^3 \tan (c+d x)}{20 b d}+\frac {C (a+b \sec (c+d x))^4 \tan (c+d x)}{5 b d}-\frac {\left (15 a^3 b B+60 a b^3 B-3 a^4 C+4 b^4 (5 A+4 C)+4 a^2 b^2 (20 A+13 C)\right ) \text {Subst}(\int 1 \, dx,x,-\tan (c+d x))}{30 b d}\\ &=\frac {\left (12 a^2 b B+3 b^3 B+4 a^3 (2 A+C)+3 a b^2 (4 A+3 C)\right ) \tanh ^{-1}(\sin (c+d x))}{8 d}+\frac {\left (15 a^3 b B+60 a b^3 B-3 a^4 C+4 b^4 (5 A+4 C)+4 a^2 b^2 (20 A+13 C)\right ) \tan (c+d x)}{30 b d}+\frac {\left (30 a^2 b B+45 b^3 B-6 a^3 C+a b^2 (100 A+71 C)\right ) \sec (c+d x) \tan (c+d x)}{120 d}+\frac {\left (4 b^2 (5 A+4 C)+3 a (5 b B-a C)\right ) (a+b \sec (c+d x))^2 \tan (c+d x)}{60 b d}+\frac {(5 b B-a C) (a+b \sec (c+d x))^3 \tan (c+d x)}{20 b d}+\frac {C (a+b \sec (c+d x))^4 \tan (c+d x)}{5 b d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 2.90, size = 451, normalized size = 1.58 \begin {gather*} -\frac {\left (C+B \cos (c+d x)+A \cos ^2(c+d x)\right ) \sec ^5(c+d x) \left (120 \left (12 a^2 b B+3 b^3 B+4 a^3 (2 A+C)+3 a b^2 (4 A+3 C)\right ) \cos ^5(c+d x) \left (\log \left (\cos \left (\frac {1}{2} (c+d x)\right )-\sin \left (\frac {1}{2} (c+d x)\right )\right )-\log \left (\cos \left (\frac {1}{2} (c+d x)\right )+\sin \left (\frac {1}{2} (c+d x)\right )\right )\right )-2 \left (540 a^2 A b+200 A b^3+180 a^3 B+600 a b^2 B+600 a^2 b C+256 b^3 C+15 \left (36 a^2 b B+17 b^3 B+12 a^3 C+3 a b^2 (12 A+17 C)\right ) \cos (c+d x)+48 \left (5 a^3 B+15 a b^2 B+15 a^2 b (A+C)+b^3 (5 A+4 C)\right ) \cos (2 (c+d x))+180 a A b^2 \cos (3 (c+d x))+180 a^2 b B \cos (3 (c+d x))+45 b^3 B \cos (3 (c+d x))+60 a^3 C \cos (3 (c+d x))+135 a b^2 C \cos (3 (c+d x))+180 a^2 A b \cos (4 (c+d x))+40 A b^3 \cos (4 (c+d x))+60 a^3 B \cos (4 (c+d x))+120 a b^2 B \cos (4 (c+d x))+120 a^2 b C \cos (4 (c+d x))+32 b^3 C \cos (4 (c+d x))\right ) \sin (c+d x)\right )}{480 d (A+2 C+2 B \cos (c+d x)+A \cos (2 (c+d x)))} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.13, size = 369, normalized size = 1.29 Too large to display
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.29, size = 445, normalized size = 1.56 \begin {gather*} \frac {240 \, {\left (\tan \left (d x + c\right )^{3} + 3 \, \tan \left (d x + c\right )\right )} C a^{2} b + 240 \, {\left (\tan \left (d x + c\right )^{3} + 3 \, \tan \left (d x + c\right )\right )} B a b^{2} + 80 \, {\left (\tan \left (d x + c\right )^{3} + 3 \, \tan \left (d x + c\right )\right )} A b^{3} + 16 \, {\left (3 \, \tan \left (d x + c\right )^{5} + 10 \, \tan \left (d x + c\right )^{3} + 15 \, \tan \left (d x + c\right )\right )} C b^{3} - 45 \, C a b^{2} {\left (\frac {2 \, {\left (3 \, \sin \left (d x + c\right )^{3} - 5 \, \sin \left (d x + c\right )\right )}}{\sin \left (d x + c\right )^{4} - 2 \, \sin \left (d x + c\right )^{2} + 1} - 3 \, \log \left (\sin \left (d x + c\right ) + 1\right ) + 3 \, \log \left (\sin \left (d x + c\right ) - 1\right )\right )} - 15 \, B b^{3} {\left (\frac {2 \, {\left (3 \, \sin \left (d x + c\right )^{3} - 5 \, \sin \left (d x + c\right )\right )}}{\sin \left (d x + c\right )^{4} - 2 \, \sin \left (d x + c\right )^{2} + 1} - 3 \, \log \left (\sin \left (d x + c\right ) + 1\right ) + 3 \, \log \left (\sin \left (d x + c\right ) - 1\right )\right )} - 60 \, C a^{3} {\left (\frac {2 \, \sin \left (d x + c\right )}{\sin \left (d x + c\right )^{2} - 1} - \log \left (\sin \left (d x + c\right ) + 1\right ) + \log \left (\sin \left (d x + c\right ) - 1\right )\right )} - 180 \, B a^{2} b {\left (\frac {2 \, \sin \left (d x + c\right )}{\sin \left (d x + c\right )^{2} - 1} - \log \left (\sin \left (d x + c\right ) + 1\right ) + \log \left (\sin \left (d x + c\right ) - 1\right )\right )} - 180 \, A a b^{2} {\left (\frac {2 \, \sin \left (d x + c\right )}{\sin \left (d x + c\right )^{2} - 1} - \log \left (\sin \left (d x + c\right ) + 1\right ) + \log \left (\sin \left (d x + c\right ) - 1\right )\right )} + 240 \, A a^{3} \log \left (\sec \left (d x + c\right ) + \tan \left (d x + c\right )\right ) + 240 \, B a^{3} \tan \left (d x + c\right ) + 720 \, A a^{2} b \tan \left (d x + c\right )}{240 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 3.89, size = 292, normalized size = 1.02 \begin {gather*} \frac {15 \, {\left (4 \, {\left (2 \, A + C\right )} a^{3} + 12 \, B a^{2} b + 3 \, {\left (4 \, A + 3 \, C\right )} a b^{2} + 3 \, B b^{3}\right )} \cos \left (d x + c\right )^{5} \log \left (\sin \left (d x + c\right ) + 1\right ) - 15 \, {\left (4 \, {\left (2 \, A + C\right )} a^{3} + 12 \, B a^{2} b + 3 \, {\left (4 \, A + 3 \, C\right )} a b^{2} + 3 \, B b^{3}\right )} \cos \left (d x + c\right )^{5} \log \left (-\sin \left (d x + c\right ) + 1\right ) + 2 \, {\left (8 \, {\left (15 \, B a^{3} + 15 \, {\left (3 \, A + 2 \, C\right )} a^{2} b + 30 \, B a b^{2} + 2 \, {\left (5 \, A + 4 \, C\right )} b^{3}\right )} \cos \left (d x + c\right )^{4} + 24 \, C b^{3} + 15 \, {\left (4 \, C a^{3} + 12 \, B a^{2} b + 3 \, {\left (4 \, A + 3 \, C\right )} a b^{2} + 3 \, B b^{3}\right )} \cos \left (d x + c\right )^{3} + 8 \, {\left (15 \, C a^{2} b + 15 \, B a b^{2} + {\left (5 \, A + 4 \, C\right )} b^{3}\right )} \cos \left (d x + c\right )^{2} + 30 \, {\left (3 \, C a b^{2} + B b^{3}\right )} \cos \left (d x + c\right )\right )} \sin \left (d x + c\right )}{240 \, d \cos \left (d x + c\right )^{5}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \left (a + b \sec {\left (c + d x \right )}\right )^{3} \left (A + B \sec {\left (c + d x \right )} + C \sec ^{2}{\left (c + d x \right )}\right ) \sec {\left (c + d x \right )}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 989 vs.
\(2 (273) = 546\).
time = 0.56, size = 989, normalized size = 3.46 \begin {gather*} \frac {15 \, {\left (8 \, A a^{3} + 4 \, C a^{3} + 12 \, B a^{2} b + 12 \, A a b^{2} + 9 \, C a b^{2} + 3 \, B b^{3}\right )} \log \left ({\left | \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 1 \right |}\right ) - 15 \, {\left (8 \, A a^{3} + 4 \, C a^{3} + 12 \, B a^{2} b + 12 \, A a b^{2} + 9 \, C a b^{2} + 3 \, B b^{3}\right )} \log \left ({\left | \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) - 1 \right |}\right ) - \frac {2 \, {\left (120 \, B a^{3} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{9} - 60 \, C a^{3} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{9} + 360 \, A a^{2} b \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{9} - 180 \, B a^{2} b \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{9} + 360 \, C a^{2} b \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{9} - 180 \, A a b^{2} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{9} + 360 \, B a b^{2} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{9} - 225 \, C a b^{2} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{9} + 120 \, A b^{3} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{9} - 75 \, B b^{3} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{9} + 120 \, C b^{3} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{9} - 480 \, B a^{3} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{7} + 120 \, C a^{3} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{7} - 1440 \, A a^{2} b \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{7} + 360 \, B a^{2} b \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{7} - 960 \, C a^{2} b \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{7} + 360 \, A a b^{2} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{7} - 960 \, B a b^{2} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{7} + 90 \, C a b^{2} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{7} - 320 \, A b^{3} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{7} + 30 \, B b^{3} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{7} - 160 \, C b^{3} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{7} + 720 \, B a^{3} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{5} + 2160 \, A a^{2} b \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{5} + 1200 \, C a^{2} b \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{5} + 1200 \, B a b^{2} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{5} + 400 \, A b^{3} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{5} + 464 \, C b^{3} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{5} - 480 \, B a^{3} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} - 120 \, C a^{3} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} - 1440 \, A a^{2} b \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} - 360 \, B a^{2} b \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} - 960 \, C a^{2} b \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} - 360 \, A a b^{2} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} - 960 \, B a b^{2} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} - 90 \, C a b^{2} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} - 320 \, A b^{3} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} - 30 \, B b^{3} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} - 160 \, C b^{3} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} + 120 \, B a^{3} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 60 \, C a^{3} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 360 \, A a^{2} b \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 180 \, B a^{2} b \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 360 \, C a^{2} b \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 180 \, A a b^{2} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 360 \, B a b^{2} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 225 \, C a b^{2} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 120 \, A b^{3} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 75 \, B b^{3} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 120 \, C b^{3} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right )}}{{\left (\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} - 1\right )}^{5}}}{120 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 6.74, size = 601, normalized size = 2.10 \begin {gather*} \frac {\mathrm {atanh}\left (\frac {4\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )\,\left (A\,a^3+\frac {3\,B\,b^3}{8}+\frac {C\,a^3}{2}+\frac {3\,A\,a\,b^2}{2}+\frac {3\,B\,a^2\,b}{2}+\frac {9\,C\,a\,b^2}{8}\right )}{4\,A\,a^3+\frac {3\,B\,b^3}{2}+2\,C\,a^3+6\,A\,a\,b^2+6\,B\,a^2\,b+\frac {9\,C\,a\,b^2}{2}}\right )\,\left (2\,A\,a^3+\frac {3\,B\,b^3}{4}+C\,a^3+3\,A\,a\,b^2+3\,B\,a^2\,b+\frac {9\,C\,a\,b^2}{4}\right )}{d}-\frac {\left (2\,A\,b^3+2\,B\,a^3-\frac {5\,B\,b^3}{4}-C\,a^3+2\,C\,b^3-3\,A\,a\,b^2+6\,A\,a^2\,b+6\,B\,a\,b^2-3\,B\,a^2\,b-\frac {15\,C\,a\,b^2}{4}+6\,C\,a^2\,b\right )\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^9+\left (\frac {B\,b^3}{2}-8\,B\,a^3-\frac {16\,A\,b^3}{3}+2\,C\,a^3-\frac {8\,C\,b^3}{3}+6\,A\,a\,b^2-24\,A\,a^2\,b-16\,B\,a\,b^2+6\,B\,a^2\,b+\frac {3\,C\,a\,b^2}{2}-16\,C\,a^2\,b\right )\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^7+\left (\frac {20\,A\,b^3}{3}+12\,B\,a^3+\frac {116\,C\,b^3}{15}+36\,A\,a^2\,b+20\,B\,a\,b^2+20\,C\,a^2\,b\right )\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^5+\left (-\frac {16\,A\,b^3}{3}-8\,B\,a^3-\frac {B\,b^3}{2}-2\,C\,a^3-\frac {8\,C\,b^3}{3}-6\,A\,a\,b^2-24\,A\,a^2\,b-16\,B\,a\,b^2-6\,B\,a^2\,b-\frac {3\,C\,a\,b^2}{2}-16\,C\,a^2\,b\right )\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^3+\left (2\,A\,b^3+2\,B\,a^3+\frac {5\,B\,b^3}{4}+C\,a^3+2\,C\,b^3+3\,A\,a\,b^2+6\,A\,a^2\,b+6\,B\,a\,b^2+3\,B\,a^2\,b+\frac {15\,C\,a\,b^2}{4}+6\,C\,a^2\,b\right )\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}{d\,\left ({\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^{10}-5\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^8+10\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^6-10\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^4+5\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2-1\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________